/**
 * 
 */
package com.rapsoft.dao;

import java.io.Serializable;
import java.util.List;

/**
 * @author Aravind
 *
 */
public interface BaseDAO<Entity,ID extends Serializable> {
	
	 public	Entity findById(ID id, boolean lock);

	 public List<Entity> findAll();

	 public ID save(Entity entity);
	 
	 public void update(Entity entity);
	 
	 public void delete(Entity entity);
	 
	 public void deleteById(ID id);

	
}
